package marchsoft.modules.tiku.service.mapstruct;

import marchsoft.modules.tiku.entity.ESafeType;
import marchsoft.modules.tiku.entity.dto.AddSafeTypeDto;
import marchsoft.modules.tiku.entity.dto.ESafeTypeDto;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

import java.util.List;

/**
 * Description：
 *
 * @author zhansiyu
 * Date: 2022/4/1 14:34
 **/
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface SafeTypeMapStruct {
    /**
     * 实体类转Dto
     * */
    List<ESafeTypeDto>  entityToDto(List<ESafeType> eSafeTypeList);

    ESafeType addDtoToEntity(AddSafeTypeDto safeTypeDto);
}
